﻿<Window x:Class="CameraViewer.EditCameraWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Loaded="Window_Loaded"
        Title="Edit Camera" SizeToContent="Height" Width="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="30*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        
        <Label Grid.Row="0" Grid.Column="0" Margin="5">Name</Label>
        <TextBox Grid.Row="0" Grid.Column="1" Margin="5" Text="{Binding CameraName}" />

        <Label Grid.Row="1" Grid.Column="0" Margin="5">Computer</Label>
        <TextBox Grid.Row="1" Grid.Column="1" Margin="5" Text="{Binding Computer}" />

        <Label Grid.Row="2" Grid.Column="0" Margin="5">Port</Label>
        <TextBox Grid.Row="2" Grid.Column="1" Margin="5" Text="{Binding Port}" />

        <Label Grid.Row="3" Grid.Column="0" Margin="5">URL Path</Label>
        <TextBox Grid.Row="3" Grid.Column="1" Margin="5" Text="{Binding CameraURLPath}" />

        <Label Grid.Row="4" Grid.Column="0" Margin="5">UserName</Label>
        <TextBox Grid.Row="4" Grid.Column="1" Margin="5" Text="{Binding UserName}" />

        <Label Grid.Row="5" Grid.Column="0" Margin="5">Password</Label>
        <PasswordBox x:Name="PasswordBox1" Grid.Row="5" Grid.Column="1" Margin="5" />

        <Label Grid.Row="6" Grid.Column="0" Margin="5">Pan Left</Label>
        <TextBox Grid.Row="6" Grid.Column="1" Margin="5" Text="{Binding PanLeft}" />

        <Label Grid.Row="7" Grid.Column="0" Margin="5">Pan Right</Label>
        <TextBox Grid.Row="7" Grid.Column="1" Margin="5" Text="{Binding PanRight}" />

        <Label Grid.Row="8" Grid.Column="0" Margin="5">Pan Up</Label>
        <TextBox Grid.Row="8" Grid.Column="1" Margin="5" Text="{Binding PanUp}" />


        <Label Grid.Row="9" Grid.Column="0" Margin="5">Pan Down</Label>
        <TextBox Grid.Row="9" Grid.Column="1" Margin="5" Text="{Binding PanDown}" />

        <Label Grid.Row="10" Grid.Column="0" Margin="5">Focus</Label>
        <TextBox Grid.Row="10" Grid.Column="1" Margin="5" Text="{Binding Focus}" />

        <Label Grid.Row="11" Grid.Column="0" Margin="5">Start Record</Label>
        <TextBox Grid.Row="11" Grid.Column="1" Margin="5" Text="{Binding StartRecord}" />


        <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Grid.ColumnSpan="2" Grid.Row="12">
            <Button Margin="5" Width="100" Click="Button_Click">Save</Button>
            <Button Margin="5" Width="100" x:Name="ButtonDeleteCamera" Click="ButtonDeleteCamera_Click">Delete</Button>
        </StackPanel>

    </Grid>
</Window>
